<?PHP
class EmailBO extends BusinessObject{
  
  /* private function using in constructors*/ 
  function setAttributes(){
    $this->fields   = array(
                      'id'             =>    'mailID',
                      'from'           =>    'mailFrom',
                      'to'             =>    'mailTo',
                      'html_body'      =>    'mailHTMLBody',
                      'attach_name'    =>    'mailAttachment',
                      'attach_content' =>    'mailAttachmentContent',
    				  'attach_path'    =>    'mailAttachmentPath',                        
                      'subject'        =>    'mailSubject',
                      'date'           =>    'mailDate',
                      'status'         =>    'mailStatus',
    		      'reply_to'       =>    'mailReplyTo',
    		      'priority'       =>    'mailPriority'    				                            			    			 
	);
    BusinessObject::setAttributes();
  }  
  /* constructor */
  function EmailBO(){
    /** super(tableName) */
    BusinessObject::BusinessObject("emails");
    $this->setAttributes();
  }
}
?>
